/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package vn.com.fis.portal.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import vn.com.fis.portal.model.VideoEntry;

/**
 * The persistence interface for the video entry service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author loind
 * @see VideoEntryPersistenceImpl
 * @see VideoEntryUtil
 * @generated
 */
public interface VideoEntryPersistence extends BasePersistence<VideoEntry> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link VideoEntryUtil} to access the video entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the video entry in the entity cache if it is enabled.
	*
	* @param videoEntry the video entry
	*/
	public void cacheResult(vn.com.fis.portal.model.VideoEntry videoEntry);

	/**
	* Caches the video entries in the entity cache if it is enabled.
	*
	* @param videoEntries the video entries
	*/
	public void cacheResult(
		java.util.List<vn.com.fis.portal.model.VideoEntry> videoEntries);

	/**
	* Creates a new video entry with the primary key. Does not add the video entry to the database.
	*
	* @param videoId the primary key for the new video entry
	* @return the new video entry
	*/
	public vn.com.fis.portal.model.VideoEntry create(long videoId);

	/**
	* Removes the video entry with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param videoId the primary key of the video entry
	* @return the video entry that was removed
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry remove(long videoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	public vn.com.fis.portal.model.VideoEntry updateImpl(
		vn.com.fis.portal.model.VideoEntry videoEntry, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the video entry with the primary key or throws a {@link vn.com.fis.portal.NoSuchVideoEntryException} if it could not be found.
	*
	* @param videoId the primary key of the video entry
	* @return the video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry findByPrimaryKey(long videoId)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns the video entry with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param videoId the primary key of the video entry
	* @return the video entry, or <code>null</code> if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry fetchByPrimaryKey(long videoId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @return the matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId_FolderId(
		java.lang.String videoName, long uploaderId, long folderId, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first video entry in the ordered set where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry findByName_UploaderId_FolderId_First(
		java.lang.String videoName, long uploaderId, long folderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns the last video entry in the ordered set where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry findByName_UploaderId_FolderId_Last(
		java.lang.String videoName, long uploaderId, long folderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns the video entries before and after the current video entry in the ordered set where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoId the primary key of the current video entry
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry[] findByName_UploaderId_FolderId_PrevAndNext(
		long videoId, java.lang.String videoName, long uploaderId,
		long folderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns all the video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @return the matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId(
		java.lang.String videoName, long uploaderId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId(
		java.lang.String videoName, long uploaderId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findByName_UploaderId(
		java.lang.String videoName, long uploaderId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first video entry in the ordered set where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry findByName_UploaderId_First(
		java.lang.String videoName, long uploaderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns the last video entry in the ordered set where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a matching video entry could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry findByName_UploaderId_Last(
		java.lang.String videoName, long uploaderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns the video entries before and after the current video entry in the ordered set where videoName = &#63; and uploaderId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param videoId the primary key of the current video entry
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next video entry
	* @throws vn.com.fis.portal.NoSuchVideoEntryException if a video entry with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public vn.com.fis.portal.model.VideoEntry[] findByName_UploaderId_PrevAndNext(
		long videoId, java.lang.String videoName, long uploaderId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			vn.com.fis.portal.NoSuchVideoEntryException;

	/**
	* Returns all the video entries.
	*
	* @return the video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the video entries.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the video entries.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of video entries
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.VideoEntry> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63; from the database.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @throws SystemException if a system exception occurred
	*/
	public void removeByName_UploaderId_FolderId(java.lang.String videoName,
		long uploaderId, long folderId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the video entries where videoName = &#63; and uploaderId = &#63; from the database.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @throws SystemException if a system exception occurred
	*/
	public void removeByName_UploaderId(java.lang.String videoName,
		long uploaderId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the video entries from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of video entries where videoName = &#63; and uploaderId = &#63; and folderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @param folderId the folder ID
	* @return the number of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public int countByName_UploaderId_FolderId(java.lang.String videoName,
		long uploaderId, long folderId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of video entries where videoName = &#63; and uploaderId = &#63;.
	*
	* @param videoName the video name
	* @param uploaderId the uploader ID
	* @return the number of matching video entries
	* @throws SystemException if a system exception occurred
	*/
	public int countByName_UploaderId(java.lang.String videoName,
		long uploaderId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of video entries.
	*
	* @return the number of video entries
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the user entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.UserEntry> getUserEntries(
		long pk) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the user entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.UserEntry> getUserEntries(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the user entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.UserEntry> getUserEntries(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of user entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the number of user entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public int getUserEntriesSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns <code>true</code> if the user entry is associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPK the primary key of the user entry
	* @return <code>true</code> if the user entry is associated with the video entry; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsUserEntry(long pk, long userEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns <code>true</code> if the video entry has any user entries associated with it.
	*
	* @param pk the primary key of the video entry to check for associations with user entries
	* @return <code>true</code> if the video entry has any user entries associated with it; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsUserEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPK the primary key of the user entry
	* @throws SystemException if a system exception occurred
	*/
	public void addUserEntry(long pk, long userEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntry the user entry
	* @throws SystemException if a system exception occurred
	*/
	public void addUserEntry(long pk,
		vn.com.fis.portal.model.UserEntry userEntry)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPKs the primary keys of the user entries
	* @throws SystemException if a system exception occurred
	*/
	public void addUserEntries(long pk, long[] userEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntries the user entries
	* @throws SystemException if a system exception occurred
	*/
	public void addUserEntries(long pk,
		java.util.List<vn.com.fis.portal.model.UserEntry> userEntries)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Clears all associations between the video entry and its user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry to clear the associated user entries from
	* @throws SystemException if a system exception occurred
	*/
	public void clearUserEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPK the primary key of the user entry
	* @throws SystemException if a system exception occurred
	*/
	public void removeUserEntry(long pk, long userEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the user entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntry the user entry
	* @throws SystemException if a system exception occurred
	*/
	public void removeUserEntry(long pk,
		vn.com.fis.portal.model.UserEntry userEntry)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPKs the primary keys of the user entries
	* @throws SystemException if a system exception occurred
	*/
	public void removeUserEntries(long pk, long[] userEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the user entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntries the user entries
	* @throws SystemException if a system exception occurred
	*/
	public void removeUserEntries(long pk,
		java.util.List<vn.com.fis.portal.model.UserEntry> userEntries)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Sets the user entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntryPKs the primary keys of the user entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public void setUserEntries(long pk, long[] userEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Sets the user entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param userEntries the user entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public void setUserEntries(long pk,
		java.util.List<vn.com.fis.portal.model.UserEntry> userEntries)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the category entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.CategoryEntry> getCategoryEntries(
		long pk) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the category entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @return the range of category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.CategoryEntry> getCategoryEntries(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the category entries associated with the video entry.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the video entry
	* @param start the lower bound of the range of video entries
	* @param end the upper bound of the range of video entries (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<vn.com.fis.portal.model.CategoryEntry> getCategoryEntries(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of category entries associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @return the number of category entries associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public int getCategoryEntriesSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns <code>true</code> if the category entry is associated with the video entry.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPK the primary key of the category entry
	* @return <code>true</code> if the category entry is associated with the video entry; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsCategoryEntry(long pk, long categoryEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns <code>true</code> if the video entry has any category entries associated with it.
	*
	* @param pk the primary key of the video entry to check for associations with category entries
	* @return <code>true</code> if the video entry has any category entries associated with it; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public boolean containsCategoryEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPK the primary key of the category entry
	* @throws SystemException if a system exception occurred
	*/
	public void addCategoryEntry(long pk, long categoryEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntry the category entry
	* @throws SystemException if a system exception occurred
	*/
	public void addCategoryEntry(long pk,
		vn.com.fis.portal.model.CategoryEntry categoryEntry)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPKs the primary keys of the category entries
	* @throws SystemException if a system exception occurred
	*/
	public void addCategoryEntries(long pk, long[] categoryEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Adds an association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntries the category entries
	* @throws SystemException if a system exception occurred
	*/
	public void addCategoryEntries(long pk,
		java.util.List<vn.com.fis.portal.model.CategoryEntry> categoryEntries)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Clears all associations between the video entry and its category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry to clear the associated category entries from
	* @throws SystemException if a system exception occurred
	*/
	public void clearCategoryEntries(long pk)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPK the primary key of the category entry
	* @throws SystemException if a system exception occurred
	*/
	public void removeCategoryEntry(long pk, long categoryEntryPK)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the category entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntry the category entry
	* @throws SystemException if a system exception occurred
	*/
	public void removeCategoryEntry(long pk,
		vn.com.fis.portal.model.CategoryEntry categoryEntry)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPKs the primary keys of the category entries
	* @throws SystemException if a system exception occurred
	*/
	public void removeCategoryEntries(long pk, long[] categoryEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes the association between the video entry and the category entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntries the category entries
	* @throws SystemException if a system exception occurred
	*/
	public void removeCategoryEntries(long pk,
		java.util.List<vn.com.fis.portal.model.CategoryEntry> categoryEntries)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Sets the category entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntryPKs the primary keys of the category entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public void setCategoryEntries(long pk, long[] categoryEntryPKs)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Sets the category entries associated with the video entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
	*
	* @param pk the primary key of the video entry
	* @param categoryEntries the category entries to be associated with the video entry
	* @throws SystemException if a system exception occurred
	*/
	public void setCategoryEntries(long pk,
		java.util.List<vn.com.fis.portal.model.CategoryEntry> categoryEntries)
		throws com.liferay.portal.kernel.exception.SystemException;
}